// Copyright (C) joyinter
// All rights reserved.
// 
// Author : dengxinguo
// Date   : 2004-12-14

#ifndef __LOGINCLUE_H_CLIENT_MAIN__
#define __LOGINCLUE_H_CLIENT_MAIN__

#pragma once

#include "resource.h"
#include <common\ui\wnd.h>
#include <common\ui\button.h>
#include <common\ui\imagectrl.h>
#include <common\ui\label.h>


class CJoyLoginWnd;

//##ModelId=44C4B5E20109
class CJoyLoginClueWnd :
    public CJoyWnd
{
	DECLARE_DYNAMIC(CJoyLoginClueWnd)
public:
	//##ModelId=44C4B5E20119
    CJoyLabel *m_labelErrClue;
	//##ModelId=44C4B5E2011E
	CJoyButton *m_btnCancel;
	//##ModelId=44C4B5E20123
	CJoyButton *m_btnRetry;

	//##ModelId=44C4B5E20129
	CJoyLoginWnd *m_loginwnd;
	//##ModelId=44C4B5E2012D
	int m_iClueLength;

	//##ModelId=44C4B5E2012E
    virtual void CM_Draw(Graphics& graph);
	//##ModelId=44C4B5E20138
    virtual void CM_RetryClick(CJoyButton*);
	//##ModelId=44C4B5E2013B
    virtual void CM_CancelClick(CJoyButton*);
	//##ModelId=44C4B5E2013E
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
public:
   

	//##ModelId=44C4B5E2014A
    CJoyLoginClueWnd(void);
	//##ModelId=44C4B5E2014C
    virtual ~CJoyLoginClueWnd(void);

	//##ModelId=44C4B5E20157
    void OnCancel();
public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5E20158
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5E2015B
    afx_msg UINT OnNcHitTest(CPoint point);
	//##ModelId=44C4B5E20167
    afx_msg void OnDestroy();
   
};

//##ModelId=44C4B5E20177
class CJoyLoginClueDlg : public CDialog
{
	DECLARE_DYNAMIC(CJoyLoginClueDlg)

protected:
  

public:

	//##ModelId=44C4B5E2017A
	CJoyLoginClueWnd  m_LoginClueWnd;
	//##ModelId=44C4B5E20186
	CJoyLoginClueDlg(CWnd* pParent);   // standard constructor
	//##ModelId=44C4B5E20188
	virtual ~CJoyLoginClueDlg();
	//##ModelId=44C4B5E2018B
	CJoyLoginWnd *m_loginwnd;

  

// Dialog Data
	enum { IDD = IDD_JOYSETTINGDLG };

protected:
	//##ModelId=44C4B5E2018F
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	//##ModelId=44C4B5E20197
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5E2019A
    afx_msg void OnSize(UINT nType, int cx, int cy);
	//##ModelId=44C4B5E201A6
    afx_msg UINT OnNcHitTest(CPoint point);
	//##ModelId=44C4B5E201A9
    afx_msg void OnClose();
};



#endif  // __LOGINCLUE_H_CLIENT_MAIN__
